package com.javaee.service.user;

import com.javaee.entity.Department;
import com.javaee.entity.User;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.util.List;

public interface AuthUserService {
    User login(String phone, String password);
    void registerPatient(String password, String name, String sex, String address, LocalDate birthday, String cno, String phone, MultipartFile doctorPhoto);
    User selectAUser(int id);
    public int updateBalance(int id, double balance);

    List<Department> selectAllDepartments();
}
